using MediatR;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using B.S.NewMedical.Api.Write.Common;

namespace B.S.NewMedical.Api.Write.Application.Command.ContentManagement.Department
{
    /// <summary>
    /// 批量删除科室命令
    /// </summary>
    public class DeleteDepartmentCommand : IRequest<BatchDeleteResult>
    {
        /// <summary>
        /// 科室ID列表
        /// </summary>
        [Required(ErrorMessage = "科室ID列表不能为空")]
        [MinLength(1, ErrorMessage = "至少需要提供一个科室ID")]
        public List<int> Ids { get; set; } = new List<int>();

        /// <summary>
        /// 操作人
        /// </summary>
        public string? UpdatePeople { get; set; }
    }
}